# -*- coding: utf-8 -*-
import os
try:
    import imp
except ImportError:  # py12
    imp = None
    import importlib
    import importlib.machinery


def action_caller(service):
    cur_path = os.path.dirname(os.path.abspath(__file__))
    if imp:
        fp, pathname, desc = imp.find_module(service, [cur_path])
        mod = imp.load_module("tccli.services." + service, fp, pathname, desc)
    else:
        spec = importlib.machinery.PathFinder().find_spec(service, [cur_path])
        mod = importlib.util.module_from_spec(spec)
        spec.loader.exec_module(mod)
    return mod.action_caller


SERVICE_VERSIONS = {
    "aai": [
        "2018-05-22"
    ],
    "aca": [
        "2021-03-23"
    ],
    "acp": [
        "2022-01-05"
    ],
    "advisor": [
        "2020-07-21"
    ],
    "af": [
        "2020-02-26"
    ],
    "afc": [
        "2020-02-26"
    ],
    "ags": [
        "2025-09-20"
    ],
    "ai3d": [
        "2025-05-13"
    ],
    "aiart": [
        "2022-12-29"
    ],
    "ame": [
        "2019-09-16"
    ],
    "ams": [
        "2020-12-29",
        "2020-06-08"
    ],
    "anicloud": [
        "2022-09-23"
    ],
    "antiddos": [
        "2020-03-09"
    ],
    "ape": [
        "2020-05-13"
    ],
    "api": [
        "2020-11-06"
    ],
    "apigateway": [
        "2018-08-08"
    ],
    "apm": [
        "2021-06-22"
    ],
    "asr": [
        "2019-06-14"
    ],
    "asw": [
        "2020-07-22"
    ],
    "autoscaling": [
        "2018-04-19"
    ],
    "ba": [
        "2020-07-20"
    ],
    "batch": [
        "2017-03-12"
    ],
    "bda": [
        "2020-03-24"
    ],
    "bh": [
        "2023-04-18"
    ],
    "bi": [
        "2022-01-05"
    ],
    "billing": [
        "2018-07-09"
    ],
    "bizlive": [
        "2019-03-13"
    ],
    "bm": [
        "2018-04-23"
    ],
    "bma": [
        "2022-11-15",
        "2021-06-24"
    ],
    "bmeip": [
        "2018-06-25"
    ],
    "bmlb": [
        "2018-06-25"
    ],
    "bmvpc": [
        "2018-06-25"
    ],
    "bpaas": [
        "2018-12-17"
    ],
    "bri": [
        "2019-03-28"
    ],
    "bsca": [
        "2021-08-11"
    ],
    "btoe": [
        "2021-05-14",
        "2021-03-03"
    ],
    "ca": [
        "2023-02-28"
    ],
    "cam": [
        "2019-01-16"
    ],
    "captcha": [
        "2019-07-22"
    ],
    "car": [
        "2022-01-10"
    ],
    "cat": [
        "2018-04-09"
    ],
    "cbs": [
        "2017-03-12"
    ],
    "ccc": [
        "2020-02-10"
    ],
    "cdb": [
        "2017-03-20"
    ],
    "cdc": [
        "2020-12-14"
    ],
    "cdn": [
        "2018-06-06"
    ],
    "cds": [
        "2018-04-20"
    ],
    "cdwch": [
        "2020-09-15"
    ],
    "cdwdoris": [
        "2021-12-28"
    ],
    "cdwpg": [
        "2020-12-30"
    ],
    "cdz": [
        "2022-11-23"
    ],
    "cfg": [
        "2021-08-20"
    ],
    "cfs": [
        "2019-07-19"
    ],
    "cfw": [
        "2019-09-04"
    ],
    "chc": [
        "2023-04-18"
    ],
    "chdfs": [
        "2020-11-12",
        "2019-07-18"
    ],
    "ciam": [
        "2022-03-31"
    ],
    "cii": [
        "2021-04-08",
        "2020-12-10"
    ],
    "cim": [
        "2019-03-18"
    ],
    "ckafka": [
        "2019-08-19"
    ],
    "clb": [
        "2018-03-17"
    ],
    "cloudapp": [
        "2022-05-30"
    ],
    "cloudaudit": [
        "2019-03-19"
    ],
    "cloudhsm": [
        "2019-11-12"
    ],
    "cloudstudio": [
        "2023-05-08"
    ],
    "cls": [
        "2020-10-16"
    ],
    "cme": [
        "2019-10-29"
    ],
    "cmq": [
        "2019-03-04"
    ],
    "cms": [
        "2019-03-21"
    ],
    "config": [
        "2022-08-02"
    ],
    "controlcenter": [
        "2023-01-10"
    ],
    "cpdp": [
        "2019-08-20"
    ],
    "csip": [
        "2022-11-21"
    ],
    "csxg": [
        "2023-03-03"
    ],
    "ctem": [
        "2023-11-28"
    ],
    "ctsdb": [
        "2023-02-02"
    ],
    "cvm": [
        "2017-03-12"
    ],
    "cwp": [
        "2018-02-28"
    ],
    "cws": [
        "2018-03-12"
    ],
    "cynosdb": [
        "2019-01-07"
    ],
    "dasb": [
        "2019-10-18"
    ],
    "dataagent": [
        "2025-05-13"
    ],
    "dayu": [
        "2018-07-09"
    ],
    "dbbrain": [
        "2021-05-27",
        "2019-10-16"
    ],
    "dbdc": [
        "2020-10-29"
    ],
    "dc": [
        "2018-04-10"
    ],
    "dcdb": [
        "2018-04-11"
    ],
    "dlc": [
        "2021-01-25"
    ],
    "dnspod": [
        "2021-03-23"
    ],
    "domain": [
        "2018-08-08"
    ],
    "drm": [
        "2018-11-15"
    ],
    "ds": [
        "2018-05-23"
    ],
    "dsgc": [
        "2019-07-23"
    ],
    "dts": [
        "2021-12-06",
        "2018-03-30"
    ],
    "eb": [
        "2021-04-16"
    ],
    "ecc": [
        "2018-12-13"
    ],
    "ecdn": [
        "2019-10-12"
    ],
    "ecm": [
        "2019-07-19"
    ],
    "eiam": [
        "2021-04-20"
    ],
    "eis": [
        "2021-06-01",
        "2020-07-15"
    ],
    "emr": [
        "2019-01-03"
    ],
    "es": [
        "2018-04-16",
        "2025-01-01"
    ],
    "ess": [
        "2020-11-11"
    ],
    "essbasic": [
        "2021-05-26",
        "2020-12-22"
    ],
    "facefusion": [
        "2022-09-27",
        "2018-12-01"
    ],
    "faceid": [
        "2018-03-01"
    ],
    "fmu": [
        "2019-12-13"
    ],
    "ft": [
        "2020-03-04"
    ],
    "gaap": [
        "2018-05-29"
    ],
    "gme": [
        "2018-07-11"
    ],
    "goosefs": [
        "2022-05-19"
    ],
    "gs": [
        "2019-11-18"
    ],
    "gwlb": [
        "2024-09-06"
    ],
    "habo": [
        "2018-12-03"
    ],
    "hai": [
        "2023-08-12"
    ],
    "hasim": [
        "2021-07-16"
    ],
    "hcm": [
        "2018-11-06"
    ],
    "hunyuan": [
        "2023-09-01"
    ],
    "iai": [
        "2020-03-03",
        "2018-03-01"
    ],
    "iap": [
        "2024-07-13"
    ],
    "ic": [
        "2019-03-07"
    ],
    "icr": [
        "2021-10-14"
    ],
    "ie": [
        "2020-03-04"
    ],
    "ig": [
        "2021-05-18"
    ],
    "igtm": [
        "2023-10-24"
    ],
    "ims": [
        "2020-12-29",
        "2020-07-13"
    ],
    "ioa": [
        "2022-06-01"
    ],
    "iot": [
        "2018-01-23"
    ],
    "iotcloud": [
        "2021-04-08",
        "2018-06-14"
    ],
    "iotexplorer": [
        "2019-04-23"
    ],
    "iotvideo": [
        "2021-11-25",
        "2020-12-15",
        "2019-11-26"
    ],
    "iotvideoindustry": [
        "2020-12-01"
    ],
    "irp": [
        "2022-08-05",
        "2022-03-24"
    ],
    "iss": [
        "2023-05-17"
    ],
    "ivld": [
        "2021-09-03"
    ],
    "keewidb": [
        "2022-03-08"
    ],
    "kms": [
        "2019-01-18"
    ],
    "lcic": [
        "2022-08-17"
    ],
    "lighthouse": [
        "2020-03-24"
    ],
    "live": [
        "2018-08-01"
    ],
    "lke": [
        "2023-11-30"
    ],
    "lkeap": [
        "2024-05-22"
    ],
    "lowcode": [
        "2021-01-08"
    ],
    "mall": [
        "2023-05-18"
    ],
    "mariadb": [
        "2017-03-12"
    ],
    "market": [
        "2019-10-10"
    ],
    "memcached": [
        "2019-03-18"
    ],
    "mmps": [
        "2020-07-10"
    ],
    "mna": [
        "2021-01-19"
    ],
    "mongodb": [
        "2019-07-25",
        "2018-04-08"
    ],
    "monitor": [
        "2018-07-24",
        "2023-06-16"
    ],
    "mps": [
        "2019-06-12"
    ],
    "mqtt": [
        "2024-05-16"
    ],
    "mrs": [
        "2020-09-10"
    ],
    "ms": [
        "2018-04-08"
    ],
    "msp": [
        "2018-03-19"
    ],
    "nlp": [
        "2019-04-08"
    ],
    "npp": [
        "2019-08-23"
    ],
    "oceanus": [
        "2019-04-22"
    ],
    "ocr": [
        "2018-11-19"
    ],
    "omics": [
        "2022-11-28"
    ],
    "organization": [
        "2021-03-31",
        "2018-12-25"
    ],
    "partners": [
        "2018-03-21"
    ],
    "postgres": [
        "2017-03-12"
    ],
    "privatedns": [
        "2020-10-28"
    ],
    "pts": [
        "2021-07-28"
    ],
    "rce": [
        "2020-11-03"
    ],
    "redis": [
        "2018-04-12"
    ],
    "region": [
        "2022-06-27"
    ],
    "rum": [
        "2021-06-22"
    ],
    "scf": [
        "2018-04-16"
    ],
    "securitylake": [
        "2024-01-17"
    ],
    "ses": [
        "2020-10-02"
    ],
    "smh": [
        "2021-07-12"
    ],
    "smop": [
        "2020-12-03"
    ],
    "sms": [
        "2021-01-11",
        "2019-07-11"
    ],
    "soe": [
        "2018-07-24"
    ],
    "sqlserver": [
        "2018-03-28"
    ],
    "ssa": [
        "2018-06-08"
    ],
    "ssl": [
        "2019-12-05"
    ],
    "sslpod": [
        "2019-06-05"
    ],
    "ssm": [
        "2019-09-23"
    ],
    "sts": [
        "2018-08-13"
    ],
    "svp": [
        "2024-01-25"
    ],
    "taf": [
        "2020-02-10"
    ],
    "tag": [
        "2018-08-13"
    ],
    "tat": [
        "2020-10-28"
    ],
    "tbaas": [
        "2018-04-16"
    ],
    "tbp": [
        "2019-06-27",
        "2019-03-11"
    ],
    "tcaplusdb": [
        "2019-08-23"
    ],
    "tcb": [
        "2018-06-08"
    ],
    "tcbr": [
        "2022-02-17"
    ],
    "tccatalog": [
        "2024-10-24"
    ],
    "tchd": [
        "2023-03-06"
    ],
    "tcm": [
        "2021-04-13"
    ],
    "tcr": [
        "2019-09-24"
    ],
    "tcss": [
        "2020-11-01"
    ],
    "tdai": [
        "2025-07-17"
    ],
    "tdcpg": [
        "2021-11-18"
    ],
    "tdid": [
        "2021-05-19"
    ],
    "tdmq": [
        "2020-02-17"
    ],
    "tds": [
        "2022-08-01"
    ],
    "tem": [
        "2021-07-01",
        "2020-12-21"
    ],
    "teo": [
        "2022-09-01",
        "2022-01-06"
    ],
    "thpc": [
        "2023-03-21",
        "2022-04-01",
        "2021-11-09"
    ],
    "tia": [
        "2018-02-26"
    ],
    "tiia": [
        "2019-05-29"
    ],
    "tione": [
        "2021-11-11",
        "2019-10-22"
    ],
    "tiw": [
        "2019-09-19"
    ],
    "tke": [
        "2018-05-25",
        "2022-05-01"
    ],
    "tkgdq": [
        "2019-04-11"
    ],
    "tms": [
        "2020-12-29",
        "2020-07-13"
    ],
    "tmt": [
        "2018-03-21"
    ],
    "tourism": [
        "2023-02-15"
    ],
    "trabbit": [
        "2023-04-18"
    ],
    "trocket": [
        "2023-03-08"
    ],
    "trp": [
        "2021-05-15"
    ],
    "trro": [
        "2022-03-25"
    ],
    "trtc": [
        "2019-07-22"
    ],
    "tse": [
        "2020-12-07"
    ],
    "tsf": [
        "2018-03-26"
    ],
    "tsi": [
        "2021-03-25"
    ],
    "tsw": [
        "2021-04-12",
        "2020-09-24"
    ],
    "tts": [
        "2019-08-23"
    ],
    "vcg": [
        "2024-04-04"
    ],
    "vclm": [
        "2024-05-23"
    ],
    "vcube": [
        "2022-04-10"
    ],
    "vdb": [
        "2023-06-16"
    ],
    "vm": [
        "2021-09-22",
        "2020-12-29",
        "2020-07-09"
    ],
    "vms": [
        "2020-09-02"
    ],
    "vod": [
        "2018-07-17",
        "2024-07-18"
    ],
    "vpc": [
        "2017-03-12"
    ],
    "vrs": [
        "2020-08-24"
    ],
    "vtc": [
        "2024-02-23"
    ],
    "waf": [
        "2018-01-25"
    ],
    "wav": [
        "2021-01-29"
    ],
    "wedata": [
        "2021-08-20",
        "2025-08-06"
    ],
    "weilingwith": [
        "2023-04-27"
    ],
    "wsa": [
        "2025-05-08"
    ],
    "wss": [
        "2018-04-26"
    ],
    "yinsuda": [
        "2022-05-27"
    ],
    "yunjing": [
        "2018-02-28"
    ],
    "yunsou": [
        "2019-11-15",
        "2018-05-04"
    ]
}